{% extends "temple.html" %}
{% block lab %}
class="active"
{% endblock %}
{% block connet %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">修改实验室信息</h1>
                <form action="" method="post" class="form-horizontal">
                {% csrf_token %}
                    <div class="form-group {% if error %}has-error{% endif %}">
                        <label for="a1" class="col-sm-2 col-sm-offset-2 control-label">名称:</label>
                        <div class="col-sm-4">
                            <input type="text" id="a1" class="form-control" value="{{ obj.l_name }}" name="l_name">
                            <span style="color: red">{{ error }}</span>
                        </div>

                    </div>
                    <div class="form-group">
                        <label for="a2" class="col-sm-2 col-sm-offset-2 control-label">楼层</label>
                        <div class="col-sm-4">
                            <input type="text" id="a2" class="form-control" value="{{ obj.floor }}" name="floor">
                        </div>
                    </div>
                    <div class="form-group {% if rerroe %}has-error{% endif %}">
                        <label for="a3" class="col-sm-2 col-sm-offset-2 control-label">房间号:</label>
                        <div class="col-sm-4">
                            <input type="text" id="a3" class="form-control" value="{{ obj.room_number }}" name="room">
                            <span style="color: red">{{ rerroe }}</span>
                        </div>
                    </div>
                <div class="form-group">
                <label for="a4" class="col-sm-2 col-sm-offset-2 control-label">负责人名称:</label>
                        <div class="col-sm-4">
                    <select  multiple name="abc" id="a4">
                        {% for foo in u_obj %}
                            {% if foo in obj.user.all %}
                                <option value="{{ foo.pk }}" selected>{{ foo.u_name }}</option>
                                {% else %}
                                <option value="{{ foo.pk }}">{{ foo.u_name }}</option>
                            {% endif %}
                        {% endfor %}
                    </div>
                </div>
                    </select>





                    <button style="margin-left: 405px" class=" btn btn-primary">提交</button>

                </form>

        </div>
{% endblock %}











